//
//  PeachNetManager.h
//  PeachDoctor
//
//  Created by ui on 2019/10/12.
//  Copyright © 2019 四川睡呗科技有限公司. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface PeachNetworking : NSObject

+ (instancetype)sharedInstance;

/// 图文问诊创建
/// @param params <#params description#>
/// @param success <#success description#>
/// @param fail <#fail description#>
- (void)createRecordInquiry:(NSDictionary *)params
                    success:(void(^)(id responseObject))success
                      error:(void (^)(NSError *error))fail;

#pragma mark - 云药房
/// 云药房问诊记录创建
/// @param params <#params description#>
/// @param success <#success description#>
/// @param fail <#fail description#>
- (void)createMedicineInquiry:(NSDictionary *)params
                       success:(void(^)(id responseObject))success
                         error:(void (^)(NSError *error))fail;
#pragma mark - 云问诊
///  云问诊记录创建
/// @param params <#params description#>
/// @param success <#success description#>
/// @param fail <#fail description#>
- (void)creatInquiryParams:(NSDictionary *)params
                   success:(void(^)(id responseObject))success
                     error:(void (^)(NSError *error))fail;

/// 修改响应时间
/// @param params <#params description#>
/// @param success <#success description#>
/// @param fail <#fail description#>
- (void)responseInquiryParams:(NSDictionary *)params
                      success:(void(^)(id responseObject))success
                        error:(void (^)(NSError *error))fail;

///  结束问诊
/// @param params <#params description#>
/// @param success <#success description#>
/// @param fail <#fail description#>
- (void)endInquiryParams:(NSDictionary *)params
                 success:(void(^)(id responseObject))success
                   error:(void (^)(NSError *error))fail;

/// 修改问诊记录
/// @param params <#params description#>
/// @param success <#success description#>
/// @param fail <#fail description#>
- (void)updateInquiryTypeParams:(NSDictionary *)params
                        success:(void(^)(id responseObject))success
                          error:(void (^)(NSError *error))fail;

#pragma mark - 获取会话列表 医生端
/// 获取医生端远程会话列表
/// @param success <#success description#>
/// @param fail <#fail description#>
- (void)getTalksByDoctorParams:(NSDictionary *)params
                       success:(void(^)(id responseObject))success
                         error:(void (^)(NSError *error))fail;

/// 获取医生端新增远程会话列表
/// @param params <#params description#>
/// @param success <#success description#>
/// @param fail <#fail description#>
- (void)getNewTalksByDoctorParams:(NSDictionary *)params
                          success:(void(^)(id responseObject))success
                            error:(void (^)(NSError *error))fail;
#pragma mark - 获取会话列表 患者端
/// 获取患者端远程会话列表
/// @param success <#success description#>
/// @param fail <#fail description#>
- (void)getTalksByPersonParams:(NSDictionary *)params
                       success:(void(^)(id responseObject))success
                         error:(void (^)(NSError *error))fail;
/// 获取患者端新增远程会话列表
/// @param params <#params description#>
/// @param success <#success description#>
/// @param fail <#fail description#>
- (void)getNewTalksByPersonParams:(NSDictionary *)params
                          success:(void(^)(id responseObject))success
                            error:(void (^)(NSError *error))fail;
#pragma mark - 电话问诊
/// 绑定隐私号码
/// @param params <#params description#>
/// @param success <#success description#>
/// @param fail <#fail description#>
- (void)phoneBind:(NSDictionary *)params
          success:(void(^)(id responseObject))success
            error:(void (^)(NSError *error))fail;
/// 请求挂断
/// @param params <#params description#>
/// @param success <#success description#>
/// @param fail <#fail description#>
- (void)hangupPhone:(NSDictionary *)params
            success:(void(^)(id responseObject))success
              error:(void (^)(NSError *error))fail;

/// 刷新问诊记录
/// @param params <#params description#>
/// @param success <#success description#>
/// @param fail <#fail description#>
- (void)refreshRPInquiry:(NSDictionary *)params
                 success:(void(^)(id responseObject))success
                   error:(void (^)(NSError *error))fail;

@end

NS_ASSUME_NONNULL_END
